package com.itheima.iostream;

import java.io.FileInputStream;
import java.io.IOException;

/*
字节流读数据
 */
public class Demo06 {

    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("day12\\b.txt");
       /* while (true) {
            int ;

            if(read==-1){
                break;
            }
            System.out.println(read);
        }*/
      /* int read;
       while ((read = fis.read())!=-1){
           System.out.println((char)read);
       }*/
      int read;
      while ((read=fis.read())!=-1){
          System.out.println((char)read);
      }
      fis.close();

    }
}
